$OpenBSD: patch-gcc_gcc_c,v 1.1.1.1 2013/04/08 08:20:25 pascal Exp $
--- gcc/gcc.c.orig	Wed Mar  6 07:32:03 2013
+++ gcc/gcc.c	Fri Mar 22 22:19:20 2013
@@ -661,7 +661,7 @@ proper position among the other output files.  */
 
 #ifndef LINK_PIE_SPEC
 #ifdef HAVE_LD_PIE
-#define LINK_PIE_SPEC "%{pie:-pie} "
+#define LINK_PIE_SPEC "%{pie:-pie} %{p|pg|nopie:-nopie} "
 #else
 #define LINK_PIE_SPEC "%{pie:} "
 #endif
